﻿namespace Compiler.Helpers.SemanticAnalyze
{
    public class Variable : UniqueObject
    {
        public Variable() {}

        public Variable(string id, LanguageTypes type)
            :base(id)
        {
            Type = type;
        }

        public Variable(string id, LanguageTypes type, dynamic value)
            : this(id, type)
        {
            Value = value;
        }

        public LanguageTypes Type { get; private set; }

        public dynamic Value { get; set; }
    }
}
